package com.itheima.health.pojo;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Objects;


public class OrderInfo {
    private String member;
    private String setmeal;
    private String orderDate;
    private String orderType;

    public OrderInfo() {
    }

    public OrderInfo(String member, String setmeal, String orderDate, String orderType) {
        this.member = member;
        this.setmeal = setmeal;
        this.orderDate = orderDate;
        this.orderType = orderType;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "member='" + member + '\'' +
                ", setmeal='" + setmeal + '\'' +
                ", orderDate='" + orderDate + '\'' +
                ", orderType='" + orderType + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderInfo orderInfo = (OrderInfo) o;
        return Objects.equals(member, orderInfo.member) && Objects.equals(setmeal, orderInfo.setmeal) && Objects.equals(orderDate, orderInfo.orderDate) && Objects.equals(orderType, orderInfo.orderType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(member, setmeal, orderDate, orderType);
    }

    public String getMember() {
        return member;
    }

    public void setMember(String member) {
        this.member = member;
    }

    public String getSetmeal() {
        return setmeal;
    }

    public void setSetmeal(String setmeal) {
        this.setmeal = setmeal;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
}
